import allure
import time
from selenium.webdriver.common.by import By

from base.base_action import BaseAction
from page.login_page import Login


class HomePage(BaseAction):

    # 今日测量人数
    peaple_now = By.XPATH, '//span[text()="今日测量人数"]'

    @allure.step(title='获取今日测量人数文本')
    def get_text_peaple_now(self):
        return self.get_text(self.peaple_now)


